#include<stdlib.h>
#include<stdio.h>
#include<sys/types.h>
#include<unistd.h>

int main()
{
    pid_t pid = fork();

    if(pid<0)
    {
        perror("fork faill\n");
        return 1;
    }
    else if(pid==0)
    {
        printf("This is a child process!\n");
        exit(0);

    }
    else
    {
        printf("This is a parent process!\n");
        sleep(60);
    }

    return 0;
}
